package moonstar;

import moonstar.Calculator.Calculate;
import java.util.Scanner;

public class main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("--------------- 这是一个简易版的计算器0.0 ---------------");
        while(true){
            System.out.println("请输入一串合理的计算式:");
            String str = scanner.next();
            double calculate1 = Calculate.calculate(str);
            System.out.println("计算结果为:"+calculate1);
            System.out.println("\n\n-------------------------------------------\n\n");
        }

    }

}
